package com.yao.club.service;

import com.yao.club.entity.dto.Message;
import com.yao.club.entity.request.AddMessageRequest;
import com.yao.club.entity.result.ResponseEntity;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface MessageService {
    ResponseEntity<Boolean> addMessage(AddMessageRequest request);

    ResponseEntity<List<Message>> getLatestMessagesByModule(String username);

    ResponseEntity<List<Message>> readMessagesByModule(String username, int module);

    ResponseEntity<List<Message>> getMessagesByModule(String username, int module, int page, int size);
}